package servlet;

import dao.TiesDao;
import entity.Ties;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

@WebServlet("/api/chushihua")
public class ChuShiHua extends  BaseServlet{
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        TiesDao a=new TiesDao();
       List<Ties> b= a.findAllNew();
       print(resp,successJson(b));
    }
}
